//
//  NSDate+MLKit.h
//
//  Created by molon on 15/3/27.
//  Copyright (c) 2015年 molon. All rights reserved.
//

#import <Foundation/Foundation.h>

//这个是时间简要信息的样式，这里暂时只有两个
typedef enum {
    TimeChineseStringStyleVerySimple = 0,
    TimeChineseStringStyleSimple,
}TimeChineseStringStyle;

@interface NSDate (MLKit)

- (NSDate*)dateByAddYearCount:(NSUInteger)count;
- (NSDate*)dateByAddDayCount:(NSUInteger)count;
- (NSString*)normalFormatString;
- (NSString*)chineseWeekday;

- (NSInteger)year;
- (NSInteger)month;
- (NSInteger)day;

+ (NSInteger)yearsBetweenDate:(NSDate*)fromDateTime andDate:(NSDate*)toDateTime;
+ (NSInteger)daysBetweenDate:(NSDate*)fromDateTime andDate:(NSDate*)toDateTime;
+ (NSInteger)minutesBetweenDate:(NSDate*)fromDateTime andDate:(NSDate*)toDateTime;

+ (NSString*)todayString;
+ (NSString*)nowString;

+ (NSDate*)dateWithDayNormalString:(NSString*)dateString;
+ (NSDate*)dateWithSecondNormalString:(NSString*)dateString;

- (NSString*)commonChineseStringWithStyle:(TimeChineseStringStyle)style;

+ (NSString*)unixMSTimestampWithNormalDayString:(NSString*)normalDayString;
+ (NSString*)normalFormatStringWithUnixMSTimestamp:(NSString*)unixMSTimestamp;
+ (NSString*)normalFormatStringWithUnixMSTimestamp:(NSString*)unixMSTimestamp formatString:(NSString*)formatString;
+ (NSDate*)dateWithUnixMSTimestamp:(NSString*)unixMSTimestamp;

@end
